echo "Running main.py"
echo "Token: $1"
python main.py --token $1
if [ $? -ne 0 ]; then
    echo "Error: failed to run main.py"
    exit 1
fi
git add ./changelog
git commit -m "update changelog at $(date)"
git push